package com.zx.map.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.zx.map.dao.model.CreditRepayLog;
import com.zx.map.dao.model.CreditRepayLogExample;

public interface CreditRepayLogDao {

	/**
	 * 新增
	 *
	 * @param creditRepayLog
	 * @return
	 * @throws org.springframework.dao.DataAccessException
	 */
	public String add(CreditRepayLog creditRepayLog) throws DataAccessException;

	/**
	 * 更新
	 *
	 * @param creditRepayLog
	 * @return
	 * @throws org.springframework.dao.DataAccessException
	 */
	public String update(CreditRepayLog creditRepayLog) throws DataAccessException;

	/**
	 * 删除
	 *
	 * @param creditRepayLog
	 * @throws org.springframework.dao.DataAccessException
	 */
	public void delete(CreditRepayLog creditRepayLog) throws DataAccessException;

	/**
	 * 根据Model查找List
	 * @param example
	 * @return
	 * @throws org.springframework.dao.DataAccessException
	 */
	public List<CreditRepayLog> getListByExample(CreditRepayLogExample example) throws DataAccessException;

     /**
     *  根据筛选的记录 更新某个字段
     */
    public void updateByExample(CreditRepayLog creditRepayLog, CreditRepayLogExample example);
    
    public int countListByExample(CreditRepayLogExample example);
    
    /**
     * 分页查找
     */
	public List<CreditRepayLog> getPageByExample(int pageSize, int pageBegin,
			CreditRepayLogExample example) throws DataAccessException ;
	
}
